import request from '@/utils/request'
/**
 * (WipStorageSemiFinished)表实体类
 *
 * @author makejava
 * @since 2025-01-11 02:09:24
 */

export const entityPut={
    id: null,  //ID
    productState: null,  //产品状态
    inboundNo: null,  //入库单号
    inboundTime: null,  //入库时间
    outboundNo: null,  //出库单号
    outboundTime: null,  //出库时间
    backBy: null,  //回仓执行人
    backTime: null,  //回仓时间
    backQualityBy: null,  //回仓质检人
    backQualityTime: null,  //回仓质检时间
    createTime: null,  //创建时间
    createBy: null,  //创建人
    updateTime: null,  //更新时间
    updateBy: null,  //更新人
    wipStorageId: null,  //箱包ID
}
export const entityPo={
    id: null,  //ID
    productState: null,  //产品状态
    inboundNo: null,  //入库单号
    inboundTime: null,  //入库时间
    outboundNo: null,  //出库单号
    outboundTime: null,  //出库时间
    backBy: null,  //回仓执行人
    backTime: null,  //回仓时间
    backQualityBy: null,  //回仓质检人
    backQualityTime: null,  //回仓质检时间
    createTime: null,  //创建时间
    createBy: null,  //创建人
    updateTime: null,  //更新时间
    updateBy: null,  //更新人
    wipStorageId: null,  //箱包ID
}
export const tableList =[
    {
        type: "selection",
        prop: "id",
        header_align: "left",
        align: "left",
        fixed: "left",
        width: 40,
        min_width: 40,
        sortable: true,
        resizable: true,
        show_overflow_tooltip: true,
        show: true
    },
    {
        type: "default",
        label: "客户/供应商",
        prop: "customer",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "成品/外协",
        prop: "inboundProcessNo",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "零件编号",
        prop: "partNo",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "产品流转号",
        prop: "productSerialNo",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "箱号",
        prop: "boxNo",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "单箱数量",
        prop: "quantityPerBox",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "检验批次",
        prop: "inspectionBatch",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "产品状态",
        prop: "productState",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "入库单号",
        prop: "inboundNo",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "入库时间",
        prop: "inboundTime",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "出库单号",
        prop: "outboundNo",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "出库时间",
        prop: "outboundTime",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "回仓执行人",
        prop: "backBy",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "回仓时间",
        prop: "backTime",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "回仓质检人",
        prop: "backQualityBy",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "回仓质检时间",
        prop: "backQualityTime",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "创建时间",
        prop: "createTime",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "创建人",
        prop: "createBy",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "更新时间",
        prop: "updateTime",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "更新人",
        prop: "updateBy",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
    {
        type: "default",
        label: "箱包ID",
        prop: "wipStorageId",
        header_align: "left",
        align: "left",
        fixed: false,
        width: 180,
        min_width: 180,
        sortable: "custom",
        resizable: true,
        show_overflow_tooltip: true,
        show: true,
        search: "Input"
    },
]
export const editList =[
    {
        show: false,
        type: "hidden",
        label: "id",
        key: "id",
        span: 24
    },
    {
        show: true,
        type: "Input",
        label: "产品状态",
        key: "productState",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "入库单号",
        key: "inboundNo",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "入库时间",
        key: "inboundTime",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "出库单号",
        key: "outboundNo",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "出库时间",
        key: "outboundTime",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "回仓执行人",
        key: "backBy",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "回仓时间",
        key: "backTime",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "回仓质检人",
        key: "backQualityBy",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "回仓质检时间",
        key: "backQualityTime",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "创建时间",
        key: "createTime",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "创建人",
        key: "createBy",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "更新时间",
        key: "updateTime",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "更新人",
        key: "updateBy",
        span: 12,
        data:{}
    },
    {
        show: true,
        type: "Input",
        label: "箱包ID",
        key: "wipStorageId",
        span: 12,
        data:{}
    },
]
export const PageMix={
    records:[],
    total: 0,
    size: 10,
    current: 1,
    orderItem: "wip_storage_semi_finished.update_time",
    ascending: false,
    queryEntity: {
        id: null,  //ID
        productState: null,  //产品状态
        inboundNo: null,  //入库单号
        inboundTime: null,  //入库时间
        outboundNo: null,  //出库单号
        outboundTime: null,  //出库时间
        backBy: null,  //回仓执行人
        backTime: null,  //回仓时间
        backQualityBy: null,  //回仓质检人
        backQualityTime: null,  //回仓质检时间
        delFlag: null,  //逻辑删除标记
        createTime: null,  //创建时间
        createBy: null,  //创建人
        updateTime: null,  //更新时间
        updateBy: null,  //更新人
        wipStorageId: null,  //箱包ID
        customer: null,  //客户/供应商
        partNo: null,  //零件编号
        productSerialNo: null,  //产品流转号
        boxNo: null,  //箱号
        quantityPerBox: null,  //单箱数量
        inspectionBatch: null,  //检验批次
        inboundProcessNo: null,  //外协工序
    },
    queryJSON: {
        id: "wipStorageSemiFinished.id",  //ID
        productState: "wipStorage.productState",  //产品状态
        inboundNo: "wipStorageSemiFinished.inboundNo",  //入库单号
        inboundTime: "wipStorageSemiFinished.inboundTime",  //入库时间
        outboundNo: "wipStorageSemiFinished.outboundNo",  //出库单号
        outboundTime: "wipStorageSemiFinished.outboundTime",  //出库时间
        backBy: "wipStorageSemiFinished.backBy",  //回仓执行人
        backTime: "wipStorageSemiFinished.backTime",  //回仓时间
        backQualityBy: "wipStorageSemiFinished.backQualityBy",  //回仓质检人
        backQualityTime: "wipStorageSemiFinished.backQualityTime",  //回仓质检时间
        delFlag: "wipStorageSemiFinished.delFlag",  //逻辑删除标记
        createTime: "wipStorageSemiFinished.createTime",  //创建时间
        createBy: "wipStorageSemiFinished.createBy",  //创建人
        updateTime: "wipStorageSemiFinished.updateTime",  //更新时间
        updateBy: "wipStorageSemiFinished.updateBy",  //更新人
        wipStorageId: "wipStorageSemiFinished.wipStorageId",  //箱包ID
        customer: "wipStorage.customer",  //客户/供应商
        partNo: "wipStorage.partNo",  //零件编号
        productSerialNo: "wipStorage.productSerialNo",  //产品流转号
        boxNo: "wipStorage.boxNo",  //箱号
        quantityPerBox: "wipStorage.quantityPerBox",  //单箱数量
        inspectionBatch: "wipStorage.inspectionBatch",  //检验批次
        inboundProcessNo: "wipStorage.inboundProcessNo",  //外协工序
    },
    likeSomeWord: null,
    betweenItem: "wipStorageSemiFinished.updateTime",
    betweenStart: null,
    betweenEnd: null
}

export function list() {
    return request({
        url: "/wip/wipStorageSemiFinished",
        method: 'get'
    })
}
export function getById(id) {
    return request({
        url: "/wip/wipStorageSemiFinished/" + id,
        method: 'get'
    })
}
export function findList(entityQuery) {
    return request({
        url: "/wip/wipStorageSemiFinished/findList",
        method: 'post',
        data: entityQuery
    })
}
export function findOne(entityQuery) {
    return request({
        url: "/wip/wipStorageSemiFinished/findOne",
        method: 'post',
        data: entityQuery
    })
}
export function pageMix(pageMix) {
    return request({
        url: "/wip/wipStorageSemiFinished/pageMix",
        method: 'post',
        data: pageMix
    })
}
export function pageMixJoin(pageMix) {
    return request({
        url: "/wip/wipStorageSemiFinished/pageMixJoin",
        method: 'post',
        data: pageMix
    })
}
export function insert(entityPut) {
    entityPut.id=null;
    return request({
        url: "/wip/wipStorageSemiFinished",
        method: 'put',
        data: entityPut
    })
}
export function update(entityPut) {
    return request({
        url: "/wip/wipStorageSemiFinished/update",
        method: 'put',
        data: entityPut
    })
}
export function del(ids) {
    return request({
        url: "/wip/wipStorageSemiFinished/" + ids,
        method: 'delete'
    })
}
export function deleteDeep(ids) {
    return request({
        url: "/wip/wipStorageSemiFinished/deep/" + ids,
        method: 'delete'
    })
}

export function outBound(ids) {
    return request({
        url: "/wip/wipStorageSemiFinished/outBound/" + ids,
        method: 'put'
    })
}

export function backBound(ids) {
    return request({
        url: "/wip/wipStorageSemiFinished/backBound/" + ids,
        method: 'put'
    })
}

export function backQualityBound(ids) {
    return request({
        url: "/wip/wipStorageSemiFinished/backQualityBound/" + ids,
        method: 'put'
    })
}